home *** CD-ROM | disk | FTP | other *** search
- Path: news-m01.ny.us.ibm.net!usenet
- From: bfilone@ibm.net <Bruce Filone>
- Newsgroups: comp.lang.c
- Subject: Check if a file exists?
- Date: 13 Apr 1996 21:53:52 GMT
- Organization: J.W. Pepper, Pa
- Message-ID: <4kp7pg$upe@news-s01.ny.us.ibm.net>
- Reply-To: bfilone@ibm.net
- NNTP-Posting-Host: slip129-37-250-67.pa.us.ibm.net
- X-Newsreader: IBM NewsReader/2 v1.03
-
- Is it possible in C to check if a file exists other than checking for a succesful
- fopen? ON a unix machine, I just want to know if a file is there or not, do not
- to read or write anything to it. similar to the -f test in unix? I was hoping for
- something less costly than opening and closing if exists because I am checking
- for the existance of many files during the run of a process
- Did not see any postings that seemed to refer to this.
- Thanks in advance.
- Bruce
-
-
- Bruce Filone
- J. W. Pepper & Son
- bfilone@ibm.net
-
-